﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class Product
    {
        private int productId;
        private string barCode;
        private ProductName productName;
        private float unitPrice;
        private bool show;
        private string expriredDate;
        private int quantity;
        private Brand brand;
        private Unit unit;
        private float worth;

        public float Worth
        {
            get { return worth; }
            set { worth = value; }
        }

        public string ExpriredDate
        {
            get { return expriredDate; }
            set { expriredDate = value; }
        }
        public ProductName ProductName
        {
            get { return productName; }
            set { productName = value; }
        }
        
        public Brand Brand
        {
            get { return brand; }
            set { brand = value; }
        }
        
        public Unit Unit
        {
            get { return unit; }
            set { unit = value; }
        }
        
        public Product() { }

        public Product(ProductName pn, Brand b, Unit u)
        {
            this.productName = pn;
            this.brand = b;
            this.unit = u;
        }

        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public bool Show
        {
            get { return show; }
            set { show = value; }
        }

        public float UnitPrice
        {
            get { return unitPrice; }
            set { unitPrice = value; }
        }

        public string BarCode
        {
            get { return barCode; }
            set { barCode = value; }
        }

        public int ProductId
        {
            get { return productId; }
            set { productId = value; }
        }
    }
}
